﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MyHealthByDesign.Views
{
    public partial class HealthGram : System.Web.UI.Page
    {
        Domain.Domain domain = new Domain.Domain();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!domain.IsUserLoggedIn())
            {
                Response.Redirect("../Default.aspx");
            }

            string systolicStatus = "Good";

            lblName.Text = "Brenda Reeves";
            lblSex.Text = "Female";
            lblAge.Text = "21";
            lblHeight.Text = "5.6";
            lblWeight.Text = "100";

            lblSystolic.Text = "110";
            
            if(systolicStatus.Equals("Good"))
            {
                ltrSystolicStatus.Text = "<td class='bgGreen'>Good</td>";
            }

            lblDiastolic.Text = "60";
            ltrDiastolicStatus.Text = "<td class='bgGreen'>Good</td>";
            ltrWaistMeasurement.Text = "<td></td>";
            ltrBMI.Text = "<td></td>";
            ltrTotalCholesterol.Text = "<td></td>";
            ltrBloodGlucose.Text = "<td></td>";
        }


    }
}